package com.lonwin.inspectionmanagement.mvp.model.entity.bean;

import android.content.Context;



public class GpsUpdataInfoBean {
    private String tm;//主键 不自增 入库时间，秒
    private int gpsID;//gpsID
    private double longitude;//经度
    private double latitude;//纬度
    private int multiType;//多媒体类型(0：纯GPS，1：图片，2:视频)
    private String multiTitle;//多媒体标题
    private String multiRemark;//多媒体备注
    private int outBorderFlg;//界内界外标识，0 界外，1界内，9无责任区
    private String multiPath;//图片、视频  Id(imei+时间毫秒)
    private int status;//预警类型 火点10 偷砍盗伐20 偷猎30 病虫害40 野外用火50 日报60 图片视频70   90位置上报  100水质采样上报
    private String adcd;//行政区划编码
    private String upLoadstatus="0";//上传状态 0未上传 1已经上传
    private double snr;//信噪比
    private double acc;//精度
    private int usesatellite;//参与定位的卫星
    private int visiblesatellite;//可见卫星数
    private int locationStatus;//本次定位的状态-1未定位 0不可用 1信号差（可疑点） 2优质点
    private String workFor;//工作内容
    private String back;//back预留字段
    private String writetm; //写入时间
    private int  roleID;//角色id
    private String sysID;//所属系统
    private int battery;//battery电量
   //netState网络状态
    private String netState = "";
    //phoneState开关机状态
    private String phoneState = "";
    //位置精度因子
    private String pdops = "";
    private String days = "";
    private String filePath=""; //文件字符串
    private String pmid = ""; //责任区id
    private String pmName = ""; //责任区名称
    private int isLast=0;//是否上一个点 -1上一个点,0正常定位点
    private int mode = 0;//定位模式，0GPS定位
    private String roleCode="";//角色代码
    private double altitude;//海拔
    private String owner;//":"州河长办",
    private String gpsType="2";//现在定位中心前端展示数据都要查gpsType为0的  GPStype=0.表示上传手机账号类型
    public GpsUpdataInfoBean(String tm, int gpsID,double altitude, double longitude, double latitude, String adcd, int roleID, String sysID,String owner,double acc) {
        this.acc=acc;
        this.tm = tm;
        this.gpsID = gpsID;
        this.longitude = longitude;
        this.latitude = latitude;
        this.adcd = adcd;
        this.roleID = roleID;
        this.sysID = sysID;
        this.multiType=0;
        this.outBorderFlg=9;
        this.altitude=altitude;
        this.owner=owner;
    }

    public double getAltitude() {
        return altitude;
    }

    public void setAltitude(double altitude) {
        this.altitude = altitude;
    }

    public String getDays()
    {
        return days;
    }
    public void setDays(String days)
    {
        this.days = days;
    }

    public void setPdops(String pdops){
        this.pdops = pdops;
    }
    public String getPdops()
    {
        return  pdops;
    }
    public void setNetState( String netState)
    {
        this.netState = netState;
    }
    public String getNetState()
    {
        return  netState;
    }
    public void setPhoneState(String phoneState)
    {
        this.phoneState = phoneState;
    }
    public String getPhoneState()
    {
        return  phoneState;
    }
    public void setBattery(int battery)
    {
        this.battery = battery;
    }
    public int getBattery()
    {
        return  battery;
    }
    public String getWritetm() {
        return writetm;
    }

    public void setWritetm(String writetm) {
        this.writetm = writetm;
    }
//    @Override
//    public String toString()
//    {
//        return "";
//    }

    public String getWorkFor() {
        return workFor;
    }

    public  String toString(Context context){
//        Lhgpspower lhgpspower=(Lhgpspower) LHSharePerence.getObjectModel("Lhgpspower");
        String systemId="lh";
//        if (lhgpspower!=null&&lhgpspower.getId()!=null)
//        {
//            systemId=lhgpspower.getId().getProjectId();
//        }
        return "{id:{tm:'"+tm+"',gpsID:"+gpsID+"},longitude:"+longitude+",latitude:"+
                latitude+",multiType:"+multiType+",multiTitle:'"+multiTitle+
                "',multiRemark:'"+multiRemark+"',outBorderFlg:"+outBorderFlg
                +",multiPath:'"+multiPath+"',status:"+status+
                ",adcd:'"+adcd+"',locationStatus:"+locationStatus+",snr:"+
                snr+",acc:"+acc+",usesatellite:"+usesatellite+",visiblesatellite:"+
                visiblesatellite+",workFor:'"+workFor+"',sysID:'"+systemId+"',writetm:'"+
                writetm+"',Battery:"+battery+",netState:'"+netState+"',phoneState='"
                +phoneState+"',pdops='"+pdops+"',days='"+days+"'"+"}";
    }

    public void setWorkFor(String workFor) {
        this.workFor = workFor;
    }

    public String getTm() {
        return tm;
    }

    public void setTm(String tm) {
        this.tm = tm;
    }

    public int getGpsID() {
        return gpsID;
    }

    public void setGpsID(int gpsID) {
        this.gpsID = gpsID;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public int getMultiType() {
        return multiType;
    }

    public void setMultiType(int multiType) {
        this.multiType = multiType;
    }

    public String getMultiTitle() {
        return multiTitle;
    }

    public void setMultiTitle(String multiTitle) {
        this.multiTitle = multiTitle;
    }

    public String getMultiRemark() {
        return multiRemark;
    }

    public void setMultiRemark(String multiRemark) {
        this.multiRemark = multiRemark;
    }

    public int getOutBorderFlg() {
        return outBorderFlg;
    }

    public void setOutBorderFlg(int outBorderFlg) {
        this.outBorderFlg = outBorderFlg;
    }

    public String getMultiPath() {
        return multiPath;
    }

    public void setMultiPath(String multiPath) {
        this.multiPath = multiPath;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getAdcd() {
        return adcd;
    }

    public void setAdcd(String adcd) {
        this.adcd = adcd;
    }

    public String getUpLoadstatus() {
        return upLoadstatus;
    }

    public void setUpLoadstatus(String upLoadstatus) {
        this.upLoadstatus = upLoadstatus;
    }

    public double getSnr() {
        return snr;
    }

    public void setSnr(double snr) {
        this.snr = snr;
    }

    public double getAcc() {
        return acc;
    }

    public void setAcc(double acc) {
        this.acc = acc;
    }

    public int getUsesatellite() {
        return usesatellite;
    }

    public void setUsesatellite(int usesatellite) {
        this.usesatellite = usesatellite;
    }

    public int getVisiblesatellite() {
        return visiblesatellite;
    }

    public void setVisiblesatellite(int visiblesatellite) {
        this.visiblesatellite = visiblesatellite;
    }

    public int getLocationStatus() {
        return locationStatus;
    }

    public void setLocationStatus(int locationStatus) {
        this.locationStatus = locationStatus;
    }

    public String getBack() {
        return back;
    }

    public void setBack(String back) {
        this.back = back;
    }

    public int getRoleID() {
        return roleID;
    }

    public void setRoleID(int roleID) {
        this.roleID = roleID;
    }

    public String getSysID() {
        return sysID;
    }

    public void setSysID(String sysID) {
        this.sysID = sysID;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getPmid() {
        return pmid;
    }

    public void setPmid(String pmid) {
        this.pmid = pmid;
    }

    public String getPmName() {
        return pmName;
    }

    public void setPmName(String pmName) {
        this.pmName = pmName;
    }

    public int getIsLast() {
        return isLast;
    }

    public void setIsLast(int isLast) {
        this.isLast = isLast;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }
}
